home *** CD-ROM | disk | FTP | other *** search
- Path: venus.roc.csci.csc.com!pccom9-156
- From: tottinge@csci.csc.com (Tim Ottinger)
- Newsgroups: comp.lang.c++,comp.unix.programmer,comp.os.linux.misc
- Subject: Re: ofstream
- Date: Thu, 21 Mar 96 21:39:59 GMT
- Organization: CSC CIS - TRIS DIVISION
- Message-ID: <4isljh$s8c@venus.roc.csci.csc.com>
- References: <4iju9a$m68@tic.sm.dsi.unimi.it>
- NNTP-Posting-Host: pccom9-156.csci.csc.com
- X-Newsreader: News Xpress Version 1.0 Beta #3
-
- In article <4iju9a$m68@tic.sm.dsi.unimi.it>,
- moreld@dsi.unimi.it (~ZIO BUDDA~) wrote:
- >hi, this is my question :
- >
- >why if i write a line like
- >ofstream ("PIPPO")
- >the g++ 2.7.0 not return any warning or error?>??
- >
- >is this correct in c++???
- >
-
- I would suppose because it correctly constructed a temporary ofstream
- with your expression "PIPPO". What you've written is a valid cast, and
- the constructor answers it just fine.
-
- ******************************************************************************
- * Tim Ottinger, Sr Tech tottinge@csci.csc.com *
- * CSC Communications Industry Services 217-351-8508x2420 *
- * TRIS Division -- Cellular Billing and Support Fax 217-351-2640 *
- ******************************************************************************
- * Requirements have always been the least stable part of any project I have *
- * worked upon. -- Robert Martin via Usenet 12/02/95 *
- ******************************************************************************
-